package service;

import dao.ComputerDao;
import dao.impl.ComputerDaoImpl;
import entity.ComputerRoom;
import service.impl.ComputerServiceImpl;

import java.util.List;

public class ComputerService implements ComputerServiceImpl {
    ComputerDaoImpl computerDao = new ComputerDao();
    @Override
    public List<ComputerRoom> show() {
        return computerDao.show();
    }

    @Override
    public int delete(int id) {
        return computerDao.delete(id);
    }

    @Override
    public int add(ComputerRoom computerRoom) {
        return computerDao.add(computerRoom);
    }
}
